	<?php
	include("db/connect.php");
    $selectamphur="SELECT * FROM amphur WHERE province_id='".$_POST["temp"]."' ORDER BY amphur_name ASC";
	$queryamphur=mysql_query($selectamphur);
	?>
    <select name="amphur_id" id="amphur_id" onChange="Javascript:amphur_change();">
     <?php 
	while($resultamphur=mysql_fetch_array($queryamphur)){
		?>
      <option value="<?php echo$resultamphur["amphur_id"]?>"><?php echo $resultamphur["amphur_name"]?></option>
      ><?php
        }
	?>
    </select>
    <script>
    amphur_change();
    </script>


